package com.michael.study.component.activity.affinity

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.michael.study.component.R
import kotlinx.android.synthetic.main.activity_first_affinity1.*

class FirstAffinity2Activity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_first_affinity2)
        btn_go.setOnClickListener {
            var intent = Intent()
            intent.setClassName(
                "com.michael.study.listview",
                "com.michael.study.listview.MainActivity"
            )
            startActivity(intent)
        }
    }
}